package com.huawei.appmarket.service.infoflow.card;

import android.content.Context;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.infoflow.bean.InfoFlowSubstanceCardBean;
import com.huawei.appmarket.service.infoflow.cards.card.BaseInfoFlowCard;
import o.eqx;
import o.ewm.e;
import o.exd;

public class InfoFlowSubstanceCard extends BaseInfoFlowCard<exd> {
    public InfoFlowSubstanceCard(Context context) {
        super(context);
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        if (cardBean instanceof InfoFlowSubstanceCardBean) {
            InfoFlowSubstanceCardBean infoFlowSubstanceCardBean = (InfoFlowSubstanceCardBean) cardBean;
            eqx.ˏ(((exd) ʾ()).ˏ, infoFlowSubstanceCardBean.ˊ(), "image_default_icon");
            ((exd) ʾ()).ॱ.setText(infoFlowSubstanceCardBean.ॱ());
            ((exd) ʾ()).ˋ.setText(infoFlowSubstanceCardBean.ʽ());
            if (infoFlowSubstanceCardBean.ꜟ() == 3) {
                ((exd) ʾ()).ʼ.setImageResource(e.ͺॱ);
                ((exd) ʾ()).ʼ.setVisibility(0);
            } else if (infoFlowSubstanceCardBean.ꜟ() == 7) {
                ((exd) ʾ()).ʼ.setImageResource(e.ˋˋ);
                ((exd) ʾ()).ʼ.setVisibility(0);
            } else {
                ((exd) ʾ()).ʼ.setVisibility(4);
            }
        }
    }
}
